package com.abc.fast.server.user.service.impl;

import com.abc.fast.server.user.dao.PermsDao;
import com.abc.fast.server.user.domain.entity.Perms;
import com.abc.fast.server.user.service.IPermsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public class PermsServiceImpl implements IPermsService {

    @Autowired
    private PermsDao permsDao;

    @Override
    public Set<String> getPermission(Long uid) {
        return permsDao.getPermission(uid);
    }

    @Override
    public List<Perms> getList() {
        return permsDao.list();
    }
}
